#include "send_packet_stream.h"

send_packet_stream::send_packet_stream() : buffer_(&buffer_array_[0], buffer_array_.size()), stream_(buffer_)
{

}

void send_packet_stream::clear()
{
	stream_.seekp(0);
	stream_.seekg(0);
	stream_.clear();
}

umtl::memory_stream& send_packet_stream::stream()
{
	return stream_;
}